{$contents}

{literal}
<div style="text-align:left; padding:10px;">
<h2>Source</h2>

<pre class="code">
&lt;?php
$contents = array(
	'type' => 'panel',
	'title' => 'DomFg form items',
	'style' => 'margin: 10px; width: 800px;',
	'layout' => 'table',
	'action' => $this->getUrl('submit'),
	'layoutConfig' => array(
		'columns' => 2,
		'columnWidths' => array(150,'*'),
	),
	'items' => array(
		array(
			'type' => 'locationPath',
			'path' => array(
				array(
					'name' => 'Root',
				),
				array(
					'name' => 'First level',
					'link' => $this->getCurrentUrl(),
				),
				array(
					'name' => 'Other',
					'link' => $this->getCurrentUrl(),
				),
				array(
					'name' => 'Something more',
					'link' => $this->getCurrentUrl(),
				),
				array(
					'name' => 'Element with long name.. Very long',
					'link' => $this->getCurrentUrl(),
				),
			),
			'colspan' => 2,
		),
		array(
			'type' => 'error',
			'message' => 'Error &lt;a href="'.$this->getUrl('allItems').'"&gt; Link &lt;/a&gt;',
			'description' => 'Error description',
			'colspan' => 2,
		),
		array(
			'type' => 'ok',
			'message' => 'Ok &lt;a href="'.$this->getUrl('allItems').'"&gt; Link &lt;/a&gt;',
			'description' => 'Status description',
			'colspan' => 2,
		),
		array(
			'type' => 'info',
			'message' => 'Info &lt;a href="'.$this->getUrl('allItems').'"&gt; Link &lt;/a&gt;',
			'description' => 'Info description',
			'colspan' => 2,
		),
		array(
			'type' => 'warning',
			'message' => 'Warning &lt;a href="'.$this->getUrl('allItems').'"&gt; Link &lt;/a&gt;',
			'description' => 'Warning description',
			'colspan' => 2,
		),
		array(
			'type' => 'separator',
			'title' => 'separator',
			'colspan' => 2,
		),
		array(
			'type' => 'spacer',
			'title' => 'spacer',
			'colspan' => 2,
		),
		array(
			'type' => 'notice',
			'message' => 'notice - this can be some notice to keep in mind',
			'colspan' => 2,
		),
		array(
			'type' => 'tip',
			'message' => 'tip - this can be some tip',
			'colspan' => 2,
		),
		array(
			'type' => 'value',
			'value' => 'value - this can be simple text',
			'colspan' => 2,
		),
	),
);
$this->view->contents = DomFg::render( $contents );
?&gt;
</pre>
</div>
{/literal}